Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 2 - Geometric Shapes / Geometric Shapes Reference
Data Types


The Rectangle Structure

You use the gxRectangle structure in a variety of situations: to specify the geometry of a rectangle shape, to specify the bounding rectangle of another shape, and so on.

The gxRectangle structure is defined as follows:

struct gxRectangle {
   Fixed    left;
   Fixed    top;
   Fixed    right;
   Fixed    bottom;
};
Field Description
left
Specifies the x-coordinate of the rectangle's first geometric point.
top
Specifies the y-coordinate of the rectangle's first geometric point.
right
Specifies the x-coordinate of the rectangle's last geometric point.
bottom
Specifies the y-coordinate of the rectangle's last geometric point.
You may specify a rectangle's geometric points in any order--the coordinates in the left and top field do not have to correspond to the rectangle's upper-left corner. However, rectangles calculated by QuickDraw GX, such as those returned from geometric operations as described in Chapter 4, "Geometric Operations," always have their coordinates specified in the standard order.

For more information about rectangles and rectangle shapes, see "Rectangle Shapes" on page 2-20.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help